home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / text-faq < prev    next >
Encoding:
Text File  |  1995-07-25  |  34.5 KB  |  777 lines

  1. Subject: comp.text Frequently Asked Questions
  2. Newsgroups: comp.text,news.answers,comp.answers
  3. From: clewis@ferret.ocunix.on.ca (Chris Lewis)
  4. Date: Thu, 17 Nov 1994 14:20:15 GMT
  5.  
  6. Archive-name: text-faq
  7. Last-Modified: Tue Oct 18 23:23:18 EDT 1994
  8.  
  9.         Frequently Asked Questions for comp.text
  10.                Chris Lewis
  11.  
  12.            Copyright 1991 - 1994.
  13.  
  14.         Redistribution for profit, or with altered
  15.         content/format prohibited without permission
  16.         of the author.  Any other redistribution must
  17.         include this copyright notice and attribution.
  18.  
  19. (This list was originally compiled by Nils-Peter Nelson, with
  20. contributions from Jaap Akkerhuis, Dick Dunn, Nick Haines, Steve
  21. Harley, Harro Kremer, Chris Lewis, John Macdonald, Bob Morris,
  22. Nils-Peter Nelson, Chip Rosenthal.)
  23.  
  24. If you have comments or additions, please contact Chris Lewis,
  25. textfaq@ferret.ocunix.on.ca (note Reply-to).
  26.  
  27. Changes are marked with a "|" in left column.  Many newsreaders
  28. (e.g. rn, trn) allow you to search for them with "g^|".
  29.  
  30. Changes this issue: - anticipate new lout release.
  31.             - TR16 formally describes current DWB.
  32.             - GN11 describes GRIF
  33.             - location of lj4 support for groff.
  34.             - GN8 updated to reflect WP/Word reality
  35.  
  36. ------------------------------
  37. Subject: Questions discussed:
  38.  
  39. General interest:
  40.  
  41.   GN1. What is the difference between word processing, desktop
  42.          publishing, technical publishing, electronic publishing, etc?
  43.   GN2. Which do I need?
  44.   GN3. What is a markup language?
  45.   GN4. What is SGML? ODA?
  46.   GN5. What is WYSIWYG? Do I need it?
  47.   GN6. What is PostScript?
  48.   GN7. What is TeX?
  49.   GN8. What are some popular Desktop Publishing packages?
  50.   GN9. Where can I read more?
  51.   GN10. What is Lout?
  52.   GN11. What is Grif?
  53.  
  54. Specific to troff:
  55.  
  56.   TR1. What is troff? Why are there so many questions about it?
  57.   TR2. How many varieties of troff are there? What are the differences?
  58.   TR3. What are some of the filters for troff output?
  59.   TR4. What other troff printer drivers are there?
  60.   TR5. How do I get my troff to drive my printer?
  61.   TR6. None of the mentioned packages support *my* printer.  Help?
  62.   TR7. How do I embed PostScript in troff?
  63.   TR8. What are fonts?  How do I add fonts?
  64.   TR9. What are width tables?
  65.   TR10. How do I make width tables?
  66.   TR11. What are: pic, eqn, tbl, grap, refer?
  67.   TR12. How do I preview my troff on my screen?
  68.   TR13. I need makedev, but my DWB doesn't come with it.
  69.   TR14. How can I get nroff/troff for DOS?
  70.   TR15. What books can I get about DWB?
  71.   TR16. Complete DWB Description 
  72.  
  73. The discussions below are organized in digest-form, so you may
  74. scan ahead for "^Subject:" to move from one topic to the next
  75. (the ^G command does this in rn), and you may search for "^Subject: GN5"
  76. (for example) to jump to the discussion of a particular question.
  77. (The caret "^" before "Subject" is a convention of regular expressions
  78. that restricts the search to match only at the beginning of a line.)
  79.  
  80. ------------------------------
  81. Subject: GN1. What is the difference between word processing, desktop
  82.     publishing, technical publishing, electronic publishing, etc?
  83.  
  84. Electronic Publishing is an all-encompassing term that means
  85. using computers (instead of hot lead) to set type for
  86. documents.  Although publishing includes a sequence of
  87. processes right through distribution, EP tends to emphasize
  88. document composition through production of a single master copy.
  89.  
  90. It is helpful to picture a graph with "complexity" along
  91. the X axis and "length" along the Y axis.  Complexity
  92. varies from straight text to footnotes and indexing to
  93. tables to line drawings to gray-scale illustration to
  94. full color.  Length varies from 1 page to 10,000 or more
  95. (better make the Y axis logarithmic!)
  96.  
  97. Word processing dominates the lower left of the graph
  98. (business letters).  Desktop publishing dominates the lower
  99. right (advertising layout).  Host-based text formatters like
  100. troff, TeX and Scribe dominate the upper-left (phone book).
  101. Proprietary systems have traditionally dominated the upper
  102. right (Sears catalog, encyclopedia); these are being supplanted
  103. by hybrids consisting of pieces from the other segments.
  104.  
  105. The middle of the graph is fair ground for everyone but is
  106. increasingly the domain of Technical Publication systems like
  107. Interleaf and FrameMaker.
  108.  
  109. ------------------------------
  110. Subject: GN2. Which do I need?
  111.  
  112. Word processors and Desktop publishers are more than adequate
  113. for documents of tens of pages.  Because they are mostly
  114. limited to PCs and Macintosh, they may be impediments in
  115. producing long documents, which would have to be done in
  116. digestible chunks (say, a chapter at a time).  High-end systems
  117. are usually UNIX-based, which means computer power and document
  118. capacity are limited only by how much you want to spend.
  119.  
  120. ------------------------------
  121. Subject: GN3. What is a markup language?
  122.  
  123. All formatters need to distinguish the text to be printed
  124. from instructions about how to print; the latter is called
  125. markup.  Procedural markup tells the software what to do
  126. (space down, invoke a macro); generic markup describes the
  127. thing to be printed (heading, cross-reference, etc.)  Troff
  128. and TeX are examples of procedural markups; ODA and SGML
  129. prescribe rules for generic languages; and good macro packages
  130. for troff or TeX make them, more-or-less, generic markup
  131. languages.
  132.  
  133. Many of the word processing packages (such as Word or Wordstar)
  134. can only do procedural markup - the software is told by the
  135. user "how to display it", rather than "what this is" - and leaving
  136. the visual representation to preprogrammed rule sets (ie:
  137. macros) - see GN5.
  138.  
  139. ------------------------------
  140. Subject: GN4. What is SGML? ODA?
  141.  
  142. SGML is the Standard Generalized Markup Language.  SGML is defined
  143. in International Standard ISO 8879:1986.  SGML is a language for
  144. formally describing the structure and contents of documents.  SGML
  145. is also the syntax used by documents so described.
  146.  
  147. SGML is an important move in the direction of separating information
  148. from its presentation, e.g. making different presentations possible
  149. for the same information.  The better macro packages for TeX and
  150. troff attempt to do the same thing.  This is in contrast with WYSIWYG -
  151. see GN5.
  152.  
  153. SGML is more fully discussed in comp.text.sgml.
  154.  
  155. SGML is the name of a directory at the public FTP site ftp.ifi.uio.no
  156. where you can find a (draft) FAQ, a bibliography, and more information.
  157.  
  158. ODA: Office [Open] Document Architecture, takes a similar approach
  159. but stresses blind interchange.  ODA is defined in the multi-part
  160. standard ISO 8613:1988, in the CCITT T.410 series recommendations,
  161. and in ECMA standard 101.
  162.  
  163. ------------------------------
  164. Subject: GN5. What is WYSIWYG? Do I need it?
  165.  
  166. What-you-see-is-what-you-get: essential for advertising layout,
  167. but a useless time-waster for a phone book.  WYSIWYG is the
  168. opposite of SGML, in that in SGML you know what something
  169. is (say, a chapter heading) but you don't know what it looks
  170. like; in WYSIWYG you know what it looks like but you don't
  171. know what it is.  The obvious benefit of WYSIWYG is that the
  172. author is aware at all times of the final appearance of the
  173. document; the liability is that the vendor gets to choose the
  174. internal representation of the document, and may not tell you
  175. what it is.
  176.  
  177. The best trade-off would be a WYSIWYG system with a well-documented,
  178. usable markup language.  There is a system called "GRIF" - see
  179. GN11.  The "doc" program in Interviews is a freeware UNIX WYSIWYG
  180. wordprocessor.
  181.  
  182. We should caution that few of the self-proclaimed WYSIWYG systems
  183. actually show the exact same thing on screen as you get on a printer:
  184. What You See Is Sort Of Like What You Get.  When 300 dpi, 17 inch
  185. terminals are common true WYSIWYG will be practical.
  186.  
  187. Being aware of the final appearance of a document is not universally
  188. accepted as a "good thing", Robertson Davies has suggested that the
  189. WYSIWYG approach to writing contributes to "blather" (and he should
  190. know as a past master ;-), while others have argued that the final
  191. appearance can't always be known.  WYSIWYG processors tend to
  192. encourage an approach that makes re-use and re-packaging of
  193. documents for alternate methods of presentation (eg: on-line
  194. and paper documentation) difficult.  Efficiency studies have shown,
  195. for at least certain types of documentation, that documents are
  196. written faster with text processors than WYSIWYGS.
  197.  
  198. ------------------------------
  199. Subject: GN6. What is PostScript?
  200.  
  201. PostScript is a language for output devices.  It does for output
  202. devices what Unix does for processors, viz., it allows a common
  203. software interface despite differences in hardware platform.
  204. PostScript controllers exist for paper printers from 4 pages
  205. per minute up to 92 ppm, from 300 dots per inch to over 6000 dpi
  206. typesetter, and for film recorders, color printers and X Window
  207. terminals.  Without PostScript, every text formatter has to
  208. understand the idiosyncrasies of every vendor's hardware.
  209. See comp.lang.PostScript for more.  PostScript is a registered
  210. trademark of Adobe Corporation.
  211.  
  212. ------------------------------
  213. Subject: GN7. What is TeX?
  214.  
  215. TeX is a batch formatter similar to troff developed by Don Knuth
  216. at Stanford.  It is most popular in universities and is freely
  217. traded because of the lack of licensing restrictions. ArborText
  218. sells a commercial version for big and small (ie PCs) machines.
  219. There are various versions for PC-class machines. LaTeX (Leslie
  220. Lamports version of TeX) is a more friendly version of the same
  221. formatter. It does for TeX what macros does for troff.  See
  222. comp.text.tex for TeX FAQs.
  223.  
  224. [To be pedantically correct, there are really only very few versions
  225. of TeX.  However, the relationship between the formatter and
  226. the macro sets (e.g.: LaTeX) is considerably more blurry in TeX than
  227. troff, and the macro package tends to be compiled-into different
  228. instantiations of TeX.  This is truly part of the culture - TeXies
  229. refer to "latex documents", troffers more generally refer to
  230. "troff with mm macros".  It's confusing.]
  231.  
  232. Oh, and to save yourself sounding like an idiot, the "eX" in "TeX"
  233. is pronounced so that it rhymes with "blecchh", not "sex" (the
  234. X is a greek chi).
  235.  
  236. ------------------------------
  237. Subject: GN8. What are some popular Desktop Publishing packages?
  238.  
  239. Aldus practically invented Desktop publishing with "PageMaker".
  240.  
  241. WordPerfect and Word are lower in functionality but less
  242. | expensive and exist on both DOS and Macintosh (WordPerfect
  243. | on UNIX too).  These are essentially word-processing packages
  244. | rather than Desktop Publishing.  WordPerfect and Word are
  245. | by far the most popular with millions of copies sold.
  246.  
  247. See comp.text.desktop for more information. Interleaf
  248. and FrameMaker are workstation-based and are higher in
  249. price and functionality, and require more substantial
  250. machine resources, but give you more in return.  FrameMaker
  251. is now available for Windows 3.1, giving transportability
  252. between the DOS/Windows, Mac and UNIX world.  See comp.text.desktop,
  253. comp.text.frame and comp.text.interleaf.
  254.  
  255. ------------------------------
  256. Subject: GN9. Where can I read more?
  257.  
  258. Publish!, Business Publishing and Seybold Report are all
  259. excellent journals for keeping up to date.  There are
  260. books devoted to most of the major packages, too many
  261. to mention here.
  262.  
  263. Richard Rubinstein's book "Digital Typography", Addison-Wesley
  264. is apparently a readable book that goes into the details of
  265. composition systems, fonts and reproduction.
  266.  
  267. -------------------------------
  268. Subject: GN10. What is Lout?
  269.  
  270. Lout is a new batch formatter drawing a fair bit from TeX and troff.
  271. Its main strengths are a more powerful and much easier to use "macro"
  272. programming language, and is reputed to be as "complete" as TeX or
  273. the troff formatting suite.  It only generates PostScript.
  274.  
  275. Lout was written by Jeff Kingston (jeff@cs.su.oz.au) and
  276. is available via anon FTP from ftp.cs.su.oz.au directory "jeff".
  277.  
  278. A user of lout comments:
  279.  
  280.     I had a look at lout, but was unimpressed.  While, in
  281.     principle, someone could write macros to give it the
  282.     functionality of troff + mm, at present the macros are rather
  283.     rudimentary.  They also are so simple that the text produced
  284.     does not look professional.  I had some discussion with the
  285.     author about this, and got back a "What's wrong with you,
  286.     nobody _else_ has complained" reply that suggests not much
  287.     progress is to be expected there.
  288.  
  289. | A new version of lout (3.01) has just been released which apparently
  290. | addresses the aforementioned problems.
  291.  
  292. -----------------------------
  293. Subject: GN11. What is GRIF?
  294.  
  295. | GRIF S.A. has been commercializing its WYSIWYG SGML editor since 1991.
  296. | Grif SGML Editor is totally compliant with the SGML standard (ISO 8879)
  297. | and offers full WYSIWYG authoring of SGML documents.  It is currently
  298. | available on both Unix-Motif and PC-Windows platforms and forms part of
  299. | GRIF S.A.'s complete range of SGML products.  For more information,
  300. | contact:
  301. | Stuart Culshaw
  302. | Marketing Assistant
  303. | GRIF S.A.
  304. | Immeuble "Le Florestan"
  305. | 2 Boulevard Vauban - BP 266
  306. | 78053 ST QUENTIN EN YVELINES
  307. | FRANCE
  308. | Tel. : +44.(1).30.12.14.30 - =
  309. | Fax. : +44.(1).30.64.06.46)
  310.  
  311. ------------------------------
  312. Subject: TR1. What is troff? Why are there so many questions about it?
  313.  
  314. Troff is one of the oldest text formatters in existence. Because
  315. it was distributed as part of the Unix operating system for
  316. many years, it is by default on several hundred thousand machines,
  317. far more than any other Unix text formatter.  It originated
  318. in AT&T Bell Laboratories in 1971 and its author was Joseph
  319. Ossanna.  Its legitimate father was a program called runoff,
  320. written at MIT in the 1960's.
  321.  
  322. Because there is no comp.text.troff, additional questions related
  323. to troff are shown below.  The remainder of the FAQ list is
  324. devoted to troff; bail out now if you are not interested.
  325.  
  326. ------------------------------
  327. Subject: TR2. How many varieties of troff are there? What are the differences?
  328.  
  329. The original Ossanna troff generates proprietary printer codes for the
  330. Wang C/A/T Phototypesetter; we'll call this "CAT Troff".  This version
  331. comes bundled in many systems, in particular, SunOS, most other
  332. | Berkeley-derived systems, some SVR4s and is contained in the Xenix Text
  333. Processing package.  The AT&T, BSD and Xenix variants all differ
  334. slightly, but not in any important ways.  CAT troff is useless without
  335. filters to convert the "CAT codes" to something else, especially since
  336. the C/A/T is as common as a California condor.  These filters are
  337. described later.
  338.  
  339. In 1981, Brian Kernighan of Bell Laboratories rewrote troff to generate
  340. a generic typesetting language.  These troffs are called "ditroff" (for
  341. device-independent troff) and contain some additional features such as
  342. arbitrary line drawing, and more flexible font handling.  "Documenter's
  343. Workbench" (DWB) is a package containing ditroff and several other
  344. | typesetting filters.  The latest AT&T version is DWB 3.4.1, which sold as
  345. source code; most commercial binary variants (Elan, SoftQuad, Image
  346. Network, etc.) are based on DWB 2.0.  The Free Software Foundation
  347. distributes a re-engineered version of ditroff called groff.
  348.  
  349. If you have a troff and want to know which it is, type:
  350.     troff < /dev/null > /dev/null
  351. If it responds with "typesetter busy" or "No /dev/cat; use -t or -a",
  352. you have CAT troff, otherwise it's ditroff.  If you get an answer from:
  353.     dwbv
  354. you have the AT&T release 3.0 or later.  The differences are too
  355. numerous and subtle to document here, but the variants are about
  356. 95% compatible.  All are ASCII based, but DWB 3.4, Groff and
  357. AIX 3.2's troff also accept ISO 8859-1 (aka ISO Latin 1), the
  358. Western European character set and are 8 bit clean.  Any 8-bit
  359. clean ditroff can be reconfigured to support alternate 8859-x
  360. character sets.  AIX 3.2 ditroff also supports Kanji (multi-byte)
  361. to a certain extent (as per IBM-932).
  362.  
  363. See TR16 for more on DWB.
  364.  
  365. ------------------------------
  366. Subject: TR3. What are some of the filters for troff output?
  367.  
  368. Psroff is a suite of programs that allow you to translate CAT troff
  369. output or ditroff output format into PostScript, HP Laserjet (with
  370. incremental font downloading) or ditroff.  See description of hp2pbm
  371. below for driving printers other than these three.
  372.  
  373. Psroff works with all versions of CAT troff and ditroff, including
  374. groff.  Psroff allows you to change fonts on the fly (unlike any other
  375. CAT troff converter).  Psroff has been used to drive HP Laserjet and
  376. clone printers, PostScript (including Display PostScript and Sun
  377. Pageview), X windows previewers (such as xditview and xtroff),
  378. Ghostscript and many others.
  379.  
  380. Psroff comes with a large suite of utility programs that allow you to
  381. create, manipulate, display HP Laserjet and PostScript fonts, as well
  382. as construct width tables for these fonts from a variety of sources,
  383. including TeK PK format, HP SFP, and PostScript.  Psroff also comes
  384. with a number of other utilities, such as PostScript page reordering,
  385. Ascii-2-PostScript converters etc.  Psroff 3.0 is the only troff HP
  386. Laserjet filter fully supporting scalable fonts or HPGL/2 graphics on
  387. HP LJ III printers.
  388.  
  389. Psroff 3.0 is capable of performing some limited emulation of ditroff
  390. features (eg: line drawing) with CAT troff.
  391.  
  392. Psroff 3.0 is available from comp.sources.unix, volume 24.  Or from
  393. ftp.uunet.ca, in /distrib/chris_lewis/psroff3.0pl17 (fully patched).
  394. Patch level 17 is current.  The author is Chris Lewis,
  395. clewis@ferret.ocunix.on.ca.
  396.  
  397. Adobe Transcript is a commercial package similar to psroff, in that it
  398. contains filters for converting ditroff or CAT troff.  But only to
  399. PostScript.  It also contains filters for Ascii-2-PostScript, and is
  400. often installed as part of SunOS printcap filters.  Adobe Transcript
  401. contains a user interface script called "psroff" which should not be
  402. confused with the other psroff (but often is).  Information can be
  403. acquired on its availability by contacting the Qualix group at
  404. 1-800-245-UNIX, or info@qualix.com.  Supports psfig with a little
  405. hacking (instructions in psfig release).
  406.  
  407. The groff package from the Free-Software-Foundation includes drivers
  408. for PostScript, DVI, X and constant-width printers, and the complete
  409. suite of troff preprocessors with the exception of grap.  It is
  410. available via anonymous ftp from several sources (it needs the FSF C++
  411. or AT&T C++ 2.0 compilers to compile, but many binary versions are also
  412. available for FTP).  Supports character kerning (unlike CAT troff or
  413. DWB).  Does not contain an HP Laserjet driver.  A "dvi2lj" or psroff
  414. 3.0 can be used as a HP Laserjet driver for groff.  Groff has made some
  415. slight changes in the ditroff and width table formats, so use with
  416. non-groff drivers may need a little fiddling.  Written by James Clark.
  417. The latest version can always be ftped from prep.ai.mit.edu:pub/gnu.
  418.  
  419. James has just updated groff to support HP Laserjet 4 printers in
  420. PCL5 (as opposed to PostScript) mode utilizing the scalable fonts
  421. built into the printer.  This apparently also works on Laserjet 3
  422. printers, with some minor deficiencies in graphics support, and not as
  423. many fonts.  Will not work on HP Laserjet II printers, and apparently
  424. | cannot work with non-scalable or downloaded fonts.  The LJ4 software
  425. | can be found in: ftp.jclark.com:/pub/test/groff-lj4.tar.gz.
  426.  
  427. It's worth noting that there is a major difference between driving
  428. HP Laserjet 3 or 4 (PCL5) and driving HP Laserjet 2 (PCL4).   PCL5
  429. has scalable fonts, and an implementation of HPGL/2 - HP's graphics
  430. language.  Driving PCL5 is fairly easy.  PCL4 doesn't support scalable
  431. fonts or graphics, and they have to be simulated by downloads and
  432. raster graphics.  A full feature driver for PCL4 will also work on PCL5,
  433. whereas something taking advantage of PCL5 won't work on PCL4.  Groff
  434. only supports PCL5.  Psroff has full function drivers for both PCL4
  435. and PCL5.
  436.  
  437. ------------------------------
  438. Subject: TR4. What other troff printer drivers are there?
  439.  
  440.     - thack: CAT to PostScript.   c.s.u. archives.
  441.       For very casual use only.  Has no width tables, and can't,
  442.       for example, make tbl box corners line up.)  Available from
  443.       c.s.u archives.  Very simple to build/install.
  444.  
  445.     - tpscript: ditroff to PostScript (reasonably good filter)
  446.       c.s.u archives.  Does not support psfig.
  447.  
  448.     - jetroff: ditroff to HP Laserjet (no support for III scalable
  449.       fonts).  Commercial version (jetroff 2) no longer available.
  450.       Jetroff 1.0 (shareware) is available from c.s.m archives.
  451.       Author: Rick Richardson.  Would need some fiddling to work
  452.       with groff.
  453.  
  454.     - troff2lj: CAT troff to HP Laserjet.  Limited font handling
  455.       functionality - package discontinued by author when psroff
  456.       2.0 was released.
  457.  
  458.     - lcat/lroff: obsolete, should be junked, precursor to psroff.
  459.  
  460.     - hp2pbm: not a troff-2-something filter per-se.  However,
  461.       given a HP Laserjet driver, hp2pbm can convert HP Laserjet 2
  462.       (PCL4) codes to Jef Poskanzer's PBM format, which permits you
  463.       to use any of the many output formats supported by PBM.
  464.       Author: Chris Lewis and Klaus Schallhorn.  Hp2pbm and PBM+
  465.       are accessible from c.s.m archives.  Hp2pbm includes a
  466.       24 pin Epson driver and a built-in G3 FAX driver.  Will not
  467.       work with groff's PCL5 driver.
  468.     
  469.     - cat2desk is a version of lcat/lroff modified to work with
  470.       Deskjets.  Psroff will work with newer deskjets (especially
  471.       scalable font ones with PCL4), but not older ones (the font
  472.       format is different) which are PCL3.
  473.  
  474. Deskjets generally:
  475.  
  476.       For printing on deskjets that do not support SFP fonts, your best
  477.       solution is either to use troff & psroff driving hp2pbm (with
  478.       pbm2lj from hp2pbm as the final stage), or groff emitting
  479.       PostScript and letting GhostScript do the conversion.  Either one
  480.       of these combinations will give you full functionality up to and
  481.       including graphics.  The former is easier to install and runs much
  482.       faster (see me for pbm2lj tweak).  The latter may have the edge on
  483.       font quality.
  484.  
  485. ------------------------------
  486. Subject: TR5. How do I get my troff to drive my printer?
  487.  
  488.     a) If you already have CAT troff and you don't need pic or grap:
  489.  
  490.        Your simplest bet is psroff if you want to drive printers supported
  491.        by psroff (PostScript, HP Laserjet, ditroff filters, PBM+
  492.        supported devices (including Epson 24 pin, FAX).  Transcript
  493.        is an alternative for PostScript output (but doesn't
  494.        allow you to mount fonts, no drawing support).
  495.  
  496.     b) You already have ditroff:
  497.  
  498.        You may already have a driver for your printer.  Check.
  499.        If not, your best bets are jetroff, psroff, tpscript,
  500.        transcript.
  501.     
  502.     c) You don't have a troff or, you have CAT troff and you need pic
  503.        and grap:
  504.  
  505.        Get "a DWB", such as groff (no grap), DWB 3, or one of the
  506.        commercial variants.
  507.  
  508. ------------------------------
  509. Subject: TR6. None of the mentioned packages support *my* printer.  Help?
  510.  
  511. This area is not entered into lightly. Look for a commercial or free
  512. package that supports your device.  Failing that, try to acquire
  513. (legally!) the source code for another device and modify it.  The AT&T
  514. documentation "Troff User's Manual" has a Reference section that
  515. completely documents the ditroff language.  SunOS and Psroff 3.0
  516. documentation contain descriptions of the CAT troff language.  Psroff
  517. 3.0 is designed for drop-in drivers, and may be the easiest to extend.
  518. Coupled with hp2pbm, psroff3.0 can probably drive just about any kind
  519. of printer that supports raster graphics with relatively little trouble
  520. (see Epson 24 pin driver for guidance).
  521.  
  522. If you can get a PostScript driver and are running on current SunOS,
  523. you could consider developing a NeWSprint driver for your printer.
  524. NeWSprint is Sun's NeWS (PostScript language interpreter extended for
  525. driving displays; not the same thing as "Display PostScript"(tm).  This
  526. may be easier than developing a troff driver, since all NeWSprint
  527. really needs is the ability to send a bitmap to a printer. Source and
  528. developer's documentation are shipped standard with NeWSprint.
  529.  
  530. Thack is ideal for quick hacks with CAT troff for printers that have
  531. dynamically scalable fonts (aside from the fact that thack has no
  532. facilities for building width tables).
  533.  
  534. ------------------------------
  535. Subject: TR7. How do I embed PostScript in troff?
  536.  
  537. There are two methods:
  538.  
  539.     - including "absolute" PostScript.  PostScript that knows where
  540.       it goes on the page, and decides its own scaling.
  541.       All versions of ditroff support this one way or another.
  542.       CAT troff does as well when coupled with psroff.  This is
  543.       most often supported by some permutation of \! or \X'...'
  544.       directives.
  545.  
  546.     - including PostScript, automatically scaling and placing the
  547.       image.  This requires that the PostScript be EPS (so that the
  548.       size and origin of the image is accessible).  Groff and
  549.       DWB 3.3 have facilities for including EPS files and automatically
  550.       placing/scaling them on the page, including leaving space in the
  551.       troff text for the image.  See if your documentation includes
  552.       remarks about "PSPIC", "PS" or other similar macros.
  553.  
  554.       Psfig (c.s.u archives) is a troff preprocessor which will permit
  555.       this sort of automatic placement/scaling with an older version
  556.       of ditroff (such as DWB 2.1) as long as the backend printer driver
  557.       understands it.  Psroff 3.0 and Adobe Transcript support psfig with
  558.       ditroff, but only Psroff 3.0 will support psfig with CAT troff.
  559.  
  560. Caution: many PC and MAC graphics packages generate sloppy PostScript which
  561. cannot be gracefully included in other documents.
  562.  
  563. ------------------------------
  564. Subject: TR8. What are fonts?  How do I add fonts?
  565.     
  566. A font is a set of characters in an specific typeface.  Unlike
  567. TeX, troff does not consider the same typeface at different
  568. sizes to be different fonts.
  569.  
  570. You have to make the width tables, install them, and tell the
  571. troff filter how to emit/request the fonts.  The details differ
  572. from one package to another.  Check the documentation.
  573.  
  574. ------------------------------
  575. Subject: TR9. What are width tables?
  576.  
  577. Both CAT troff and ditroff need to know the width of each character
  578. that you use.  The widths of each character (along with some additional
  579. characteristics) are arranged in a file for each font.  There are
  580. basically five different width table formats:
  581.  
  582.     1) CAT troff: uses a binary table of 224 unsigned chars.
  583.     2) MIPS (and RISC/Ultrix) CAT troff uses an ASCII dump of (1)
  584.     3) DWB 2.x and several of the commercial variants use an ASCII
  585.        format that is compiled into a binary form by a special program
  586.        called "makedev".
  587.     4) DWB 3.x uses the ASCII format mentioned in (3) - doesn't need
  588.        to be compiled.
  589.     5) Groff uses the ASCII format mentioned in (4) with minor variations.
  590.  
  591. If the width tables are wrong, character spacing will look funny - up
  592. to and including overlapping characters, and broken right justification.
  593.  
  594. ------------------------------
  595. Subject: TR10. How do I make width tables?
  596.  
  597. Creating them is not hard.  Getting the actual metrics sometimes is.
  598.  
  599. The AT&T documentation "Troff User's Manual" describes the DWB width
  600. table format.  Your DWB may already have a manual page for it.
  601.  
  602. Psroff 3.0 contains documentation on DWB and CAT troff format width
  603. tables.
  604.  
  605. DWB 3.3, Psroff 3.0 and tpscript each have a utility for automatically
  606. creating width tables by sucking the data out of a PostScript device.
  607.  
  608. Psroff 3.0 and jetroff have utilities for creating width tables from
  609. HP laserjet fonts.
  610.  
  611. Psroff 3.0 can convert between any of the 5 width table formats.
  612.  
  613. Groff contains a package for generating groff width tables from HP's
  614. scaleable font metrics format.
  615.  
  616. Consult the documentation to find out where to put the files.
  617.  
  618. ------------------------------
  619. Subject: TR11. What are: pic, eqn, tbl, grap, refer?
  620.  
  621. These are the basic troff preprocessors shipped with DWB:
  622.  
  623.     - pic allows you to draw arbitrary line-drawing graphics in a
  624.       machine-independent fashion.
  625.     - eqn allows you to construct mathmatical equations.
  626.     - tbl provides a mechanism for specifying and displaying
  627.       automatically sized/configured tables 
  628.     - grap uses pic to construct graphs.
  629.     - refer provides a mechanism for searching for and formatting
  630.       bibligraphic references.
  631.  
  632. Neither pic nor grap are included with CAT troff, but eqn, tbl and
  633. frequently refer are present.  Groff does not at present support grap.
  634.  
  635. ------------------------------
  636. Subject: TR12. How do I preview my troff on my screen?
  637.  
  638.     a) X windows: xditview and xtroff (X11R5 contrib directory, xtroff
  639.        also from ftp.cs.toronto.edu) and gxditview (from groff) will
  640.        preview ditroff format (groff requires gxditview), including
  641.        psroff 3.0's ditroff output from CAT troff.
  642.     b) Display PostScript (ie: AIX 3 & DEC dpsexec, NeXT,
  643.        Sun Pageview, Ultrascript, Ghostview plus GhostScript): any
  644.        PostScript generating troff.  (Theoretically at least.  May need
  645.        a teensy bit of PostScript hacking to get a reasonable pager
  646.        (psroff3.0 has this built in).  Pageview and Ultrascript have some
  647.        limitations so may not work with a specific PostScript
  648.        generator).  Pageview gets very confused about page boundaries
  649.        unless the PostScript is DSC compliant and has "%%Page:" comments
  650.        in it.
  651.     c) Others: You can probably find a PBM converter for it,
  652.        so use a Laserjet-generating troff configuration plus hp2pbm.
  653.        (eg: Sun rasters, 3b1 screens, EGA, VGA, GIFF, TIFF etc.)
  654.        I preview on X by generating PCL with psroff, converting
  655.        to PBM with hp2pbm, then display with pbm2Xd (part of hp2pbm)
  656.        and xwud (part of X windows).
  657.     d) Others: You may be able to find a DVI driver for it,
  658.        so use a DVI-generating troff configuration (namely,
  659.        groff's ditdvi) and use the appropriate dvi2<whatever> filter.
  660.     e) AIX 3.2 has a good AIXwindows 1.2 and Motif1.1 based
  661.        previewer called "xpreview".
  662.  
  663. ------------------------------
  664. Subject: TR13. I need makedev, but my DWB doesn't come with it.
  665.  
  666. A freeware version called "mkfont" is available from c.s.m, and
  667. is also included in Jetroff 1.0.  The Jetroff version is to be
  668. preferred because it's been extended a bit more to be an exact
  669. "makedev" replacement w.r.t. command line arguments.
  670.  
  671. ------------------------------
  672. Subject: TR14. Nroff/Troff on DOS machines
  673.  
  674. Arto Viitanen (av@ohdake.cs.uta.fi) has used djgpp (the MSDOS port of
  675. gcc 2.01) to compile groff-1.05 for MSDOS. The binaries are available
  676. at garbo.uwasa.fi in /pc/unix. The file is groff396.zip and it's 725 Kb.
  677. A port of version 1.07 by Mauro Condarelli is available from omnigate.
  678. clarkson.edu in pub/msdos/djgpp/pub.  This port includes the groff
  679. driver and also the dvi device, both of which were missing in the 1.05
  680. port.  Both ports work well except for gpic which does not seem to work on
  681. systems lacking a math coprocessor.
  682.  
  683. There's also a OS/2 port using the EMX environment (GCC 2.3.3), which
  684. includes a DOS extender.  The latest version may support DOS directly.
  685.  
  686. Elan, Image Network, and SoftQuad have commercial versions of DWB
  687. for DOS machines.  They tend to be a bit pricey - in the $500-$1200
  688. range.
  689.  
  690. There are many freeware versions of nroff that have either already
  691. been ported, or should be easy to port to DOS.  For example, C
  692. implementations of Kernighan and Plauger's "Software Tools" "roff"
  693. (see Ozan Yigit's implementation available from comp.sources.unix).
  694. [roff isn't a complete implementation of nroff, depends on what
  695. you need.]
  696.  
  697. Related: Ghostscript can be used on DOS to preview the output of any
  698. PostScript-producing application, including groff.  If you do use
  699. GhostScript, make sure that you get the latest version with the good
  700. fonts.  GhostScript also contains CGA and VGA drivers for on-screen
  701. preview.
  702.  
  703. Cawf2 a C port of Henry Spencer's Amazing Workable Formatter (originally
  704. an awk program).  It apparently does a reasonable job with -ms and -man
  705. macros.  The C version is by Vic Abell and is available from ftp.cc.
  706. purdue.edu in pucc/cawf.  It works on MSDOS and most or all UNIX systems.
  707.  
  708. I'd appreciate any other leads on DOS nroff/troffs.
  709.  
  710. ------------------------------
  711. Subject: TR15. What books can I get about DWB?
  712.  
  713.     Troff User's Manual, by Ossanna and Kernighan, is available for
  714.     anonymous ftp as netlib.att.com:/netlib/att/cs/cstr/54.ps.Z.
  715.  
  716.     Document Formatting and Typesetting on the UNIX System,
  717.     2 volumes, Nerain Gehani, Silicon Press, ISBN 0-9615336-2-5.
  718.     A very good general reference; covers troff, the preprocessors,
  719.     and most of the popular macro packages.
  720.  
  721.     Typesetting Tables on the UNIX System, Henry McGilton, Mary McNabb.
  722.     Trilithon Press, ISBN 0-9626289-0-5.  A very good, very complete
  723.     reference and tutorial on TBL.
  724.  
  725.     Unix Text Processing, Dale Dougherty & Tim O'Reilly, Hayden Books,
  726.     ISBN 0-672-46291-5.  A good discussion not just of troff (ms & mm),
  727.     tbl, eqn, and pic, but also vi and ex, sed, and awk.
  728.  
  729.     Troff typesetting for Unix Systems, Sandra L. Emerson & Karen Paulsell
  730.     (kjp@well?) Prentice-Hall, 0-13-930959-4.  This is a good book
  731.     for people wishing to write raw troff (as in rolling your own
  732.     macros)
  733.  
  734.     troff-Programmierung: proffessionelle Textverarbeitung und
  735.         Schriftsatz unter UNIX, Claus Schirmer, Hanser Verlag 1990,
  736.         ISBN 3-446-15649-6.  Reportedly a superb book on troff
  737.     programming.  Ie: a ms-like macro package is built in a
  738.     step-by-step way.  Don't know if there's non-German language
  739.     version.
  740.  
  741.     The UNIX Text Processing System, Kaare Christian, Wiley, 1987.
  742.     Is especially good on REFER, the best chapter on REFER
  743.     available.  [This book now appears to be out of print.]
  744.  
  745.     Text processing and typesetting with UNIX, D.W. Barron and Mike Rees,
  746.     Addison-Wesley, 1987.
  747.  
  748. ------------------------------
  749. Subject: TR16. Complete DWB description.
  750.  
  751. |     Documenter's Workbench (DWB) is the successor to the original Bell
  752. |     Labs version of troff.  The current package, DWB 3.4, includes 86
  753. |     commands:  troff, tbl, eqn, grap, pic, picasso, a pipeline builder,
  754. |     PostScript drivers and utilities for bounding box computation and
  755. |     device interrogation; optional (at no cost) LaserJet and Imagen
  756. |     printer support; man, mm and other macro packages, font tables,
  757. |     etc.  A companion add-on, DWBX 3.4, provides an X Window previewer,
  758. |     drawing program, spell corrector and hypertext man page viewer.
  759. |     The source code is fully-portable to UNIX SVR2, SVR3, SVR4, BSD
  760. |     and SunOS, and is available for corporate or university license at
  761. |     a fixed price, and for sublicense at a negotiable fee.  Binaries
  762. |     are available for all AT&T, NCR and Sun UNIX platforms.  One full
  763. |     set of documentation (7 booklets and 9 Quick Reference cards)
  764. |     included with each license.
  765. |     Sales inquiries: AT&T Software Solutions, 1-800-462-8146 (US),
  766. |     +1-908-580-5719 from elsewhere; fax 1-908-580-6355.
  767. |     Technical inquiries: dwb@mhpo.att.com.
  768. -- 
  769. Chris Lewis: _Una confibula non sat est_
  770. Phone: Canada 613 832-0541  Ferret list: ferret-request@ferret.ocunix.on.ca
  771. Latest psroff: FTP://ftp.uunet.ca/distrib/chris_lewis/psroff3.0pl17/*
  772. Latest hp2pbm: FTP://ftp.uunet.ca/distrib/chris_lewis/hp2pbm/*
  773.  
  774.